#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 7;
int a[N];
bool g[N];
int main() {
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    int n;
    scanf("%d", &n);
    for (int i = 1; i <= n; ++i)
        scanf("%d", a + i);
    sort(a + 1, a + n + 1);
    int sum = n;
    int j = 2;
    for (int i = 1; i <= n; ++i) {
        for (; j <= n; ++j) {
            if (a[j] > a[i]) {
                if (g[j]) continue;
                --sum;
                g[j] = true;
                break;
            }
        }
        if (j == n) break;
    }
    printf("%d", sum);
}
